//
//  SCPhotoAlbumPreviewViewController.h
//  PhotoAlbum
//
//  Created by Chao Sheng on 2021/12/4.
//

#import <UIKit/UIKit.h>
#import "SCPhotoPreviewViewCell.h"
#import "SCPreviewBottomView.h"
#import "SCPhotoView.h"

NS_ASSUME_NONNULL_BEGIN

@interface SCPhotoAlbumPreviewViewController : UIViewController

@property (nonatomic, strong) UICollectionView *collectionView;


@property (nonatomic, strong) SCPreviewBottomView *bottomView;

/// 数据源
@property (nonatomic, strong) NSArray <SCPhotoModel*>*photoList;

/// 来源 0-相册 1-添加界面
@property (nonatomic, assign) NSInteger origin;

/// 当期位置
@property (assign, nonatomic) NSInteger currentModelIndex;

/// 已经选中的数据
@property (nonatomic, strong) SCPhotoManager *manager;

/// 已经选中的序号(如果当前预览的图片是已经选中的，index的值大于0)
@property (nonatomic, assign) NSInteger selectedIndex;

/// 点击完成按钮
@property (nonatomic, copy) void (^scCompletion)(void);

/// 根据model获取当前cell（转场动画里需要调用）
- (SCPhotoPreviewViewCell*)currentPhotoCell:(SCPhotoModel*)model;

@end

NS_ASSUME_NONNULL_END
